pub struct Job { dirty: Work, fresh: Work }
/// Each proc should send its description before starting.
-/// It should send either once or close immediatly.
+/// It should send either once or close immediately.
pub struct Work {
inner: Box<FnBox<Sender<String>, CargoResult<()>> + Send>,
}
Ok(())
}
- // This isn't super trivial becuase we don't want to print loads and
+ // This isn't super trivial because we don't want to print loads and
// loads of information to the console, but we also want to produce a
// faithful representation of what's happening. This is somewhat nuanced
// as a package can start compiling *very* early on because of custom
// TODO: don't download into memory (curl-rust doesn't expose it)
let resp = try!(handle.get(url.to_string()).follow_redirects(true).exec());
if resp.get_code() != 200 && resp.get_code() != 0 {
- return Err(internal(format!("Failed to get 200 reponse from {}\n{}",
+ return Err(internal(format!("Failed to get 200 response from {}\n{}",
url, resp)))
}
/// A helper structure to represent the modification time of a file.
///
-/// The actual value contined within is platform-specific and does not have the
+/// The actual value contained within is platform-specific and does not have the
/// same meaning across platforms, but comparisons and stringification can be
/// significant among platforms.
#[derive(Eq, PartialEq, Ord, PartialOrd, Debug, Copy, Clone)]
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
- Error::NonUtf8Body => write!(f, "reponse body was not utf-8"),
+ Error::NonUtf8Body => write!(f, "response body was not utf-8"),
Error::Curl(ref err) => write!(f, "http error: {}", err),
Error::NotOkResponse(ref resp) => {
write!(f, "failed to get a 200 OK response: {}", resp)
let expected_stdout = format!("\
{compiling} foo v0.0.1 ({dir})
-{runnning} target[..]release[..]bin2[..]
+{running} target[..]release[..]bin2[..]
running 1 test
test run2 ... bench: 0 ns/iter (+/- 0)
",
compiling = COMPILING,
- runnning = RUNNING,
+ running = RUNNING,
dir = prj.url());
assert_that(prj.cargo_process("bench").arg("--bench").arg("bin2"),
"#)
}).unwrap();
- // Make a tag correponding to the current HEAD
+ // Make a tag corresponding to the current HEAD
let repo = git2::Repository::open(&git_project.root()).unwrap();
let head = repo.head().unwrap().target().unwrap();
repo.tag("v0.1.0",